//sceneintro.js

function SceneIntro()
{
	
	this.button_start = new Button("img/start.png", 250, 80, 200, 300);
	this.button_credits = new Button("img/credits.png", 250, 80, 200, 450);
	this.fundo = new Background ("img/CAPA.png")	

	
    this.update=function()
    {
    	
    };
    
    this.draw=function()
    {
    	//screen.font = "20px Comic Sans MS";
		//screen.fillStyle="#000000";
		//screen.fillText("INTRO", 20, 20);
		this.fundo.draw();
				
		this.button_credits.draw();

		this.button_start.draw();
		
    };
    
    this.mouse_down=function(mouse)
    {
    	//console.log("INTRO mouse X " + mouse.x + " mouse Y " + mouse.y );
    	
    	//currentScene = SCENES.CREDITS;
    	
    	if(this.button_start.clicked(mouse))
    	{
    		currentScene = SCENES.LEVEL01;	
    	}
    	
    	if(this.button_credits.clicked(mouse))
    	{
    		currentScene = SCENES.CREDITS;	
    	}
    };
    
    this.key_down=function(key)
    {
    	//console.log("INTRO keyCode " + key.keyCode );
    	
    	//currentScene = SCENES.LEVEL01;
    };
    
    this.mouse_up=function(mouse)
    {
    	//console.log("INTRO mouse UP X " + mouse.x + " mouse Y " + mouse.y );
    	
    };
    
    this.key_up=function(key)
    {
    	//console.log("INTRO key UP keyCode " + key.keyCode );
    };

    
}